package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * Hello world!
 */
@SpringBootApplication
public class TestShardingsphere2 {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(TestShardingsphere2.class, args);
        String port = context.getEnvironment().getProperty("server.port");
        String contentPath = context.getEnvironment().getProperty("server.context-path");
        // 直接访问静态资源
        System.out.println("http://localhost:" + port + contentPath + "/order/createOrder/{userId}/{orderId}");
        System.out.println("http://localhost:" + port + contentPath + "/order/{userId}");
        System.out.println("http://localhost:" + port + contentPath + "/order/list");
    }
}
